import {
  combineReducers, // 合并多个 reducer 处理函数
} from '../../redux'

// reducers 处理函数
import counter1 from './counter1'
import counter2 from './counter2'


// 获取合并后的 combineReducer
let combinedReducer = combineReducers({
  counter1,
  counter2
})

/**
 * counter1 ==> { number: 0 }
 * counter2 => { number: 0 }
 * combinedReducer ==> { counter1: { number: 0 }, counter2: { number: 0 } }
 */

export default combinedReducer
